package team.szm.scd.database.vo;

import lombok.*;
import team.szm.scd.database.entity.Case;
import team.szm.scd.database.entity.InspectionType;

import java.time.LocalDate;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CaseVO extends Case {
    /**
     * 就诊医院
     */
    String hospitalName;
    String departmentName;
    LocalDate appointmentTime;
    /**
     * 接诊医生
     */
    String doctorName;
    String userName;
    @Setter(AccessLevel.NONE)
    @Getter(AccessLevel.NONE)
    String userGender;
    String userAddress;
    List<MedicineVO> medicines;
    List<InspectionType> inspections;

    public void setUserGender(boolean userGender) {
        this.userGender = userGender ? "男" : "女";
    }

    public boolean getUserGender() {
        return userGender.equals("男");
    }
}
